<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>Face Detection with Alignment: eHposemodel.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Face Detection with Alignment
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Macros</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">eHposemodel.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="eHposemodel_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#ifndef EHPOSEMODEL_H</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define EHPOSEMODEL_H</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="eHimage_8h.html">eHimage.h</a>&quot;</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="eHfilter_8h.html">eHfilter.h</a>&quot;</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="eHbbox_8h.html">eHbbox.h</a>&quot;</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;</div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="keyword">using</span> std::vector;</div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span>deformation_pose {</div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;    <span class="keywordtype">int</span> i;</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;    <span class="keywordtype">int</span> anchor[3];</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;    <span class="keywordtype">double</span> w[4];</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;} posedef_t;</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span>part_pose {</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;    <span class="keywordtype">int</span>* biasid; <span class="comment">/*numpar x num (except for root, which is 1)*/</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;    <span class="keywordtype">int</span>* defid; <span class="comment">/*num (except for root, which is NULL)*/</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;    <span class="keywordtype">int</span>* filterid; <span class="comment">/*num*/</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;    <span class="keywordtype">int</span> num;</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;    <span class="keywordtype">int</span> numpar;</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;    <span class="keywordtype">int</span> parent;</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;    <span class="comment">/* infos not directly from file */</span></div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;    <span class="keywordtype">int</span>* sizy; <span class="comment">/*num*/</span></div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    <span class="keywordtype">int</span>* sizx;<span class="comment">/*num*/</span></div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;    <span class="keywordtype">int</span> scale;</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    <span class="keywordtype">int</span> step;</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;    <span class="keywordtype">int</span>* startx;<span class="comment">/*num*/</span></div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;    <span class="keywordtype">int</span>* starty;<span class="comment">/*num*/</span></div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;} posepart_t;</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span>bias_pose {</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    <span class="keywordtype">int</span> i;</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    <span class="keywordtype">double</span> w;</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;} posebias_t;</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;</div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="structeHposemodel.html">   48</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structeHposemodel.html">eHposemodel</a> {</div>
<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="structeHposemodel.html#a642f5071c21c6d75e7a75445d719f6eb">   49</a></span>&#160;    vector&lt;posebias_t&gt; <a class="code" href="structeHposemodel.html#a642f5071c21c6d75e7a75445d719f6eb">biases</a>;  </div>
<div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="structeHposemodel.html#a689384423c5273b949ac93f0b2906016">   50</a></span>&#160;    vector&lt;filter_t&gt; <a class="code" href="structeHposemodel.html#a689384423c5273b949ac93f0b2906016">filters</a>;   </div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="structeHposemodel.html#a788922f2f90c6b863fde9ba3b645e8c3">   51</a></span>&#160;    vector&lt;posedef_t&gt; <a class="code" href="structeHposemodel.html#a788922f2f90c6b863fde9ba3b645e8c3">defs</a>;     </div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="structeHposemodel.html#a0d1d1dbe1d375b299a1870aef4f1ad48">   52</a></span>&#160;    vector&lt;posepart_t&gt; <a class="code" href="structeHposemodel.html#a0d1d1dbe1d375b299a1870aef4f1ad48">parts</a>;   </div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="structeHposemodel.html#a433ed08ea1f7bef4659ca6fba49073ea">   53</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="structeHposemodel.html#a433ed08ea1f7bef4659ca6fba49073ea">maxsize</a>[2];         </div>
<div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="structeHposemodel.html#a07615bb70ed782c7d4da9a4a32c565e0">   54</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="structeHposemodel.html#a07615bb70ed782c7d4da9a4a32c565e0">len</a>;            </div>
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="structeHposemodel.html#ac43caa1b83126c638d146c6e560878e6">   55</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="structeHposemodel.html#ac43caa1b83126c638d146c6e560878e6">interval</a>;           </div>
<div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="structeHposemodel.html#af3b30a28c1359491e5faad10162621fb">   56</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="structeHposemodel.html#af3b30a28c1359491e5faad10162621fb">sbin</a>;           </div>
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="structeHposemodel.html#a81c0dccbebb4cf048a4c5d1db1ab97dc">   57</a></span>&#160;    <span class="keywordtype">double</span> <a class="code" href="structeHposemodel.html#a81c0dccbebb4cf048a4c5d1db1ab97dc">thresh</a>;          </div>
<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="structeHposemodel.html#a03e0d97dba416f1986c44db6f8ab48fc">   58</a></span>&#160;    <span class="keywordtype">double</span> <a class="code" href="structeHposemodel.html#a03e0d97dba416f1986c44db6f8ab48fc">obj</a>;             </div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;};</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structeHposemodel.html">eHposemodel</a> <a class="code" href="structeHposemodel.html">posemodel_t</a>;</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;<a class="code" href="structeHposemodel.html">posemodel_t</a>* <a class="code" href="eHposemodel_8h.html#a04c13b2b55be485453d6e2784771299b">posemodel_parseXml</a>(<span class="keywordtype">char</span>* xmlstr);</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;<a class="code" href="structeHposemodel.html">posemodel_t</a>* <a class="code" href="eHposemodel_8h.html#a19b6e1f6163967185a8fee8a885c560c">posemodel_readFromFile</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* filepath);</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;vector&lt;bbox_t&gt; <a class="code" href="eHposemodel_8h.html#a373b2f2bcb960aaaedc16c5a8063c534">posemodel_detect</a>(<span class="keyword">const</span> <a class="code" href="structeHposemodel.html">posemodel_t</a>* model, <span class="keyword">const</span> <a class="code" href="structeHimage.html">image_ptr</a> img, <span class="keywordtype">double</span> thrs);</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;vector&lt;bbox_t&gt; <a class="code" href="eHposemodel_8h.html#a373b2f2bcb960aaaedc16c5a8063c534">posemodel_detect</a>(<span class="keyword">const</span> <a class="code" href="structeHposemodel.html">posemodel_t</a>* model, <span class="keyword">const</span> <a class="code" href="structeHimage.html">image_ptr</a> img);</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;<span class="keywordtype">void</span> <a class="code" href="eHposemodel_8h.html#a97e4c0059e6554b9e7a377ea488e15ba">posemodel_delete</a>(<a class="code" href="structeHposemodel.html">posemodel_t</a>* model);</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="ttc" id="structeHposemodel_html_af3b30a28c1359491e5faad10162621fb"><div class="ttname"><a href="structeHposemodel.html#af3b30a28c1359491e5faad10162621fb">eHposemodel::sbin</a></div><div class="ttdeci">int sbin</div><div class="ttdoc">bin for building hog feature </div><div class="ttdef"><b>Definition:</b> eHposemodel.h:56</div></div>
<div class="ttc" id="eHbbox_8h_html"><div class="ttname"><a href="eHbbox_8h.html">eHbbox.h</a></div><div class="ttdoc">Multi-box bounding box type and operations. </div></div>
<div class="ttc" id="structeHposemodel_html_a03e0d97dba416f1986c44db6f8ab48fc"><div class="ttname"><a href="structeHposemodel.html#a03e0d97dba416f1986c44db6f8ab48fc">eHposemodel::obj</a></div><div class="ttdeci">double obj</div><div class="ttdoc">not used </div><div class="ttdef"><b>Definition:</b> eHposemodel.h:58</div></div>
<div class="ttc" id="structeHimage_html"><div class="ttname"><a href="structeHimage.html">eHimage</a></div><div class="ttdoc">Basic image data structure. </div><div class="ttdef"><b>Definition:</b> eHimage.h:23</div></div>
<div class="ttc" id="structeHposemodel_html"><div class="ttname"><a href="structeHposemodel.html">eHposemodel</a></div><div class="ttdoc">Human body/pose mdoel. </div><div class="ttdef"><b>Definition:</b> eHposemodel.h:48</div></div>
<div class="ttc" id="structeHposemodel_html_a788922f2f90c6b863fde9ba3b645e8c3"><div class="ttname"><a href="structeHposemodel.html#a788922f2f90c6b863fde9ba3b645e8c3">eHposemodel::defs</a></div><div class="ttdeci">vector&lt; posedef_t &gt; defs</div><div class="ttdoc">deformation params </div><div class="ttdef"><b>Definition:</b> eHposemodel.h:51</div></div>
<div class="ttc" id="eHposemodel_8h_html_a19b6e1f6163967185a8fee8a885c560c"><div class="ttname"><a href="eHposemodel_8h.html#a19b6e1f6163967185a8fee8a885c560c">posemodel_readFromFile</a></div><div class="ttdeci">posemodel_t * posemodel_readFromFile(const char *filepath)</div><div class="ttdoc">Read body/pose model from file. </div><div class="ttdef"><b>Definition:</b> eHposemodel.cpp:265</div></div>
<div class="ttc" id="eHposemodel_8h_html_a04c13b2b55be485453d6e2784771299b"><div class="ttname"><a href="eHposemodel_8h.html#a04c13b2b55be485453d6e2784771299b">posemodel_parseXml</a></div><div class="ttdeci">posemodel_t * posemodel_parseXml(char *xmlstr)</div><div class="ttdoc">Parse body/pose model from xml style string. </div><div class="ttdef"><b>Definition:</b> eHposemodel.cpp:34</div></div>
<div class="ttc" id="structeHposemodel_html_a81c0dccbebb4cf048a4c5d1db1ab97dc"><div class="ttname"><a href="structeHposemodel.html#a81c0dccbebb4cf048a4c5d1db1ab97dc">eHposemodel::thresh</a></div><div class="ttdeci">double thresh</div><div class="ttdoc">threshold for detection score </div><div class="ttdef"><b>Definition:</b> eHposemodel.h:57</div></div>
<div class="ttc" id="eHfilter_8h_html"><div class="ttname"><a href="eHfilter_8h.html">eHfilter.h</a></div><div class="ttdoc">Filters applied on image features. </div></div>
<div class="ttc" id="structeHposemodel_html_a0d1d1dbe1d375b299a1870aef4f1ad48"><div class="ttname"><a href="structeHposemodel.html#a0d1d1dbe1d375b299a1870aef4f1ad48">eHposemodel::parts</a></div><div class="ttdeci">vector&lt; posepart_t &gt; parts</div><div class="ttdoc">part configurations </div><div class="ttdef"><b>Definition:</b> eHposemodel.h:52</div></div>
<div class="ttc" id="eHimage_8h_html"><div class="ttname"><a href="eHimage_8h.html">eHimage.h</a></div><div class="ttdoc">Basic image type and operations. </div></div>
<div class="ttc" id="structeHposemodel_html_ac43caa1b83126c638d146c6e560878e6"><div class="ttname"><a href="structeHposemodel.html#ac43caa1b83126c638d146c6e560878e6">eHposemodel::interval</a></div><div class="ttdeci">int interval</div><div class="ttdoc">interval of feature pyramid </div><div class="ttdef"><b>Definition:</b> eHposemodel.h:55</div></div>
<div class="ttc" id="structeHposemodel_html_a07615bb70ed782c7d4da9a4a32c565e0"><div class="ttname"><a href="structeHposemodel.html#a07615bb70ed782c7d4da9a4a32c565e0">eHposemodel::len</a></div><div class="ttdeci">int len</div><div class="ttdoc">not used </div><div class="ttdef"><b>Definition:</b> eHposemodel.h:54</div></div>
<div class="ttc" id="structeHposemodel_html_a689384423c5273b949ac93f0b2906016"><div class="ttname"><a href="structeHposemodel.html#a689384423c5273b949ac93f0b2906016">eHposemodel::filters</a></div><div class="ttdeci">vector&lt; filter_t &gt; filters</div><div class="ttdoc">part filters </div><div class="ttdef"><b>Definition:</b> eHposemodel.h:50</div></div>
<div class="ttc" id="eHposemodel_8h_html_a97e4c0059e6554b9e7a377ea488e15ba"><div class="ttname"><a href="eHposemodel_8h.html#a97e4c0059e6554b9e7a377ea488e15ba">posemodel_delete</a></div><div class="ttdeci">void posemodel_delete(posemodel_t *model)</div><div class="ttdoc">Delete a pose model, release related memory. </div><div class="ttdef"><b>Definition:</b> eHposemodel.cpp:504</div></div>
<div class="ttc" id="structeHposemodel_html_a433ed08ea1f7bef4659ca6fba49073ea"><div class="ttname"><a href="structeHposemodel.html#a433ed08ea1f7bef4659ca6fba49073ea">eHposemodel::maxsize</a></div><div class="ttdeci">int maxsize[2]</div><div class="ttdoc">XXX. </div><div class="ttdef"><b>Definition:</b> eHposemodel.h:53</div></div>
<div class="ttc" id="structeHposemodel_html_a642f5071c21c6d75e7a75445d719f6eb"><div class="ttname"><a href="structeHposemodel.html#a642f5071c21c6d75e7a75445d719f6eb">eHposemodel::biases</a></div><div class="ttdeci">vector&lt; posebias_t &gt; biases</div><div class="ttdoc">bias towards part combinations </div><div class="ttdef"><b>Definition:</b> eHposemodel.h:49</div></div>
<div class="ttc" id="eHposemodel_8h_html_a373b2f2bcb960aaaedc16c5a8063c534"><div class="ttname"><a href="eHposemodel_8h.html#a373b2f2bcb960aaaedc16c5a8063c534">posemodel_detect</a></div><div class="ttdeci">vector&lt; bbox_t &gt; posemodel_detect(const posemodel_t *model, const image_ptr img, double thrs)</div><div class="ttdoc">Perform body/pose detection. </div><div class="ttdef"><b>Definition:</b> eHposemodel.cpp:291</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon May 26 2014 22:18:57 for Face Detection with Alignment by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>
